﻿namespace SocketGateway.DTO
{
    /// <summary>
    /// 菜单
    /// </summary>
    public class MenuDto
    {
        /// <summary>
        /// 唯一id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 菜单图标，一般是类名
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 0目录，1菜单
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 菜单打开方式：_iframe->tab项
        /// </summary>
        public string OpenType { get; set; } = "_iframe";

        /// <summary>
        /// 菜单链接
        /// </summary>
        public string Href { get; set; }

        /// <summary>
        /// Type=0时子菜单
        /// </summary>
        public List<MenuDto> Children { get; set; } = new List<MenuDto>();
    }
}
